/****************************************************************************/
/* CoRI Collectors of ressource information                                 */
/* Colleting Memory Information for EASY                                    */
/*                                                                          */
/* Author(s):                                                               */
/*    - Frauenkron Peter (Peter.Frauenkron@ens-lyon.fr)                     */
/*                                                                          */
/* $LICENSE$                                                                */
/****************************************************************************/
/* $Id: Cori_Easy_Memory.hh,v 1.2 2006/10/31 23:18:33 ecaron Exp $
 * $Log: Cori_Easy_Memory.hh,v $
 * Revision 1.2  2006/10/31 23:18:33  ecaron
 * Correct wrong header
 *
 ****************************************************************************/


#ifndef _CORI_EASY_MEMORY_HH_
#define _CORI_EASY_MEMORY_HH_

class Easy_Memory{
public:
  int 
  get_Total_Memory(double * result);
  int 
  get_Avail_Memory(double * result);

private:
  int 
  get_Avail_Memory_byvmstat(double * result);
  int 
  get_Avail_Memory_bysysinfo(double * result);
  int 
  get_Total_Memory_bysysinfo(double * result);
  int 
  get_Info_Memory_byProcMem(double* resultat,
			    int freemem);
};
#endif //_CORI_EASY_MEMORY_HH_
